package cn.hesion.springcloud.controller;
/**
 * ClassName: PaymentController <br/>
 * Description: <br/>
 * date: 2020/8/30 9:58<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */


import cn.hutool.Hutool;
import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.UUID;

/**
 * @program: springcloud
 * @description:
 * @author: hesion
 * @create: 2020-08-30 09:58
 **/
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverport;


    @RequestMapping(value ="/payment/consul")
    public String paymentconsul(){

        return "springcloud with consul"+serverport+"\t"+ IdUtil.simpleUUID();
    }
}
